{{include template('public/header','admin')}}
<body>
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <div class="page-header">
                    <a onclick="layer_open('添加表单', '/diyform/diyform/add', '800', '450')" href="javascript:;" class="btn btn-primary bar-btn"><i class="fa fa-fw fa-plus"></i>添加表单</a>
                </div>
                <div class="search">

                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <form method="post"  class="form-inline" role="form">
                    <table class="table table-condensed table-hover table-striped tablesorter table-fixed table-selectable">
                        <thead>
                            <tr>
                            <tr class="text-c">
                                <th>表单名称(数据量)</th>
                                <th>表名</th>
                                <th>简介</th>
                                <th>创建时间</th>
                                <th>状态</th>
                                <th>管理操作</th>
                            </tr>
                            </tr>
                        </thead>
                        <tbody>
                            {{foreach $items as $item}}
                            <tr>
                                <td >{{$item.name}}({{$item.items}}条数据)</td>
                                <td >{{$item.tablename}}</td>
                                <td >{{$item.description}}</td>
                                <td >{{date("Y-m-d H:i:s",$item.inputtime)}}</td>
                                <td >{{update_status('/diyform/diyform','cms_model','modelid',$item.modelid,'disabled',$item.disabled)}}</td>
                                <td>
                                    <a href="/diyform/diyform_info/?modelid={{$item.modelid}}" class="btn btn-success btn-xs" style="text-decoration:none">信息列表</a>

                                    <a href="/diyform/index/show/?modelid={{$item.modelid}}" target="_blank"  class="btn btn-info btn-xs" style="text-decoration:none">前台浏览</a>

                                    <a href="/diyform/diyform_field/?modelid={{$item.modelid}}"class="btn btn-primary btn-xs" style="text-decoration:none">字段管理</a>

                                    <a href="javascript:;" onclick="layer_open('编辑表单', '/diyform/diyform/update/?modelid={{$item.modelid}}', '800', '450')"  class="btn btn-warning btn-xs" style="text-decoration:none">修改</a>

                                    <a href="javascript:;" onclick="layer_del('/diyform/diyform/delete/?modelid={{$item.modelid}}')"  class="btn btn-danger btn-xs" style="text-decoration:none">删除</a>
                                </td>
                            </tr>
                            {{/foreach}}
                        </tbody>
                    </table>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
